package PTA2.ti17;

import java.util.Scanner;

/**
 * @author Lenovo
 */


public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int M = sc.nextInt();
        double P = sc.nextDouble();
        int N = sc.nextInt();
        double money1 = 0, money2 = 0;
        money1 = M * (Math.pow(1 + P, N));
        money2 = M + M * P * N;
        System.out.print(Math.round(money1) + " " + Math.round(money2) + " " + Math.round(money1 - money2));

    }
}
